<?php 

include'../classes/db.php';

$regno=$_GET['regno'];
$subgr=$_GET['subgr'];
$month=$_GET['month'];
$year=$_GET['year'];
$marks=$_GET['marks'];

$x=new DbConnect();
$con=$x->getConnection();

  $result= mysql_query("Select examreg.marks from examdetail,examreg,student where 
  examdetail.month = '$month'
  AND examdetail.year = '$year'
  AND examdetail.sub_gr = '$subgr'
  AND examdetail.exam_id = examreg.exam_id
  AND examreg.reg_no = '$regno'
  AND student.reg_no = examreg.reg_no 
  AND year( student.j_date ) = '$year' ",$con);
  $nof=mysql_num_rows($result);
  echo $nof;
  
	if ($nof > 0)
  		{
   			echo"false";
    	}
	else
		{
			echo "$nof";
		}
?>